package concurrent;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.ArrayList;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Random;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.LinkedBlockingQueue;

/**
 * @author Summerday
 */
public class TestLinkedBlockingQueue {

    public static void main (String[] args) throws InterruptedException {


        PriorityQueue<Ele> queue = new PriorityQueue<>();
        queue.add(new Ele());


        Ele first = queue.peek();

        first = null;

        System.out.println(queue.peek() == null);


    }
}


class Ele implements Comparable<Ele>{

    String name = new Random().nextInt(500) +  " ";


    @Override
    public int compareTo (Ele o) {
        return 0;
    }
}